#ifndef _ADC_H_
#define _ADC_H_

#define BATTERY 0
#define LIGHT 1

#include <Arduino.h>
#include "Oled.h"
#include "led.h"

class ADC{

public:
    ADC();
    u16 get(bool mode);
    void fresh();
    u16 last_dat = 0;
    u16 battery_adc_buf;
private:

    u16 light_dat[8]={0,0,0,0,0,0,0,0};
    u8 bat_dat[8];
    bool adc_mode = 0;
    
};

extern ADC adc;

#endif